package com.jzx.provider.ucenter.consul.dto.command;

import lombok.Builder;
import lombok.Data;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author daihuihui
 * @date 2019/11/05
 */
@Data
@Builder
public class ConsulLoginCommand implements Serializable {
    @Pattern(regexp = "^1\\d{10}$")
    private String mobile;

    @Size(min = 6, max = 20)
    private String password;
}
